/**
 * Copyright 2016-2018 mobaas.com
 */
package com.mobaas.devops.dao.mybatis;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.mobaas.devops.dao.AdminDao;
import com.mobaas.devops.model.Admin;

/**
 * 
 * @author billy zhang
 * 
 */
@Mapper
public interface AdminMapper extends AdminDao {
    
	@Override
	int deleteAdmin(
			@Param("id")int id);

	@Override
    int insertAdmin(Admin record);

	@Override
    Admin selectAdminById(
    		@Param("id")int id);

	@Override
    int updateAdmin(Admin record);

	@Override
	Admin selectAdminByName(
			@Param("username")String username);

	@Override
	int selectAdminCount(
			@Param("keyword")String keyword);

	@Override
	List<Admin> selectAdminList(
			@Param("keyword")String keyword, 
			@Param("offset")int offset, 
			@Param("limit")int limit);

	@Override
	int selectAdminCountByName(
			@Param("name")String name);

}